package vtt.android.game2048;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.google.analytics.tracking.android.EasyTracker;

public class BaseActivity extends Activity {
	
	protected ActionBar actionBar;
	protected Context mContext;
	
	ImageView btnUp;
	TextView txtTitle;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		
		EasyTracker.getInstance().setContext(this);
		
	}
	
	public void setCustomTitle(String title){
		txtTitle.setText(title);
	}
	
	@Override
	protected void onStart() {
		super.onStart();
		EasyTracker.getInstance().activityStart(this);
	}

	@Override
	protected void onStop() {
		super.onStop();
		EasyTracker.getInstance().activityStop(this);
	}
}
